<?php
/**
 * User: wmlife
 * Date: 13-5-14
 */

class HomeBaseAction extends Action
{
    public function __construct()
    {
        parent::__construct();
        header("Content-Type:text/html; charset=utf-8");
        layout(true);
        $this->assign("isLogin", false);
        //推荐推书加载
        $tjList = S('tjList');
        if ($tjList) {
//            S("tjList",NULL);
        }else{
            //初始化
            $part = D("Recommend");
            $tjList = $part->join(" join book_document doc on doc.oid = bookid ")->field(array("doc.oid","doc.name","doc.book_brief","doc.author","has_icon","icon_s"))->select();
            S("tjList",$tjList,60);
        }
        $this->assign("tjList",$tjList);
    }
}